<template>
  <div>
  手机号：<el-input class="phone" v-model="inpuTxt" placeholder="请输入内容"></el-input>
  
  <el-button type="success" @click="setPhone">确认</el-button>
  
  </div>
</template>

<script>
export default {
  data () {
    return {
      inpuTxt: '',
    }
  },
  methods: {
　setPhone: function () {
　　　//this.$store.state.author = this.inpuTxt
      this.$store.commit('newAuther',this.inpuTxt)
　}
  }
}
</script>

<style scoped>
  .phone{
    width: 180px;
  }
</style>


